<div class="layui-card-header SearchTable">
    测试代码：<span id="detail_name_str" class="color_green">测试</span>
</div>
<div class="layui-card-body">
<pre class="layui-code" lay-title="模板" lay-height="" lay-skin="" lay-encode="true" about="false">
       <script type="text/html" id="checkboxTpl">
           <input type="checkbox" name="lock" value="{{d.video_id}}" title="发布" lay-filter="PubVideo" {{ d.pub_tag ? 'checked' : '' }}>
       </script>
</pre>

<pre class="layui-code" lay-title="JS代码" lay-height="" lay-skin="" lay-encode="" about="false">
        //监听锁定操作
        form.on('checkbox(PubVideo)', function (obj) {
            $.get("PubVideoApi", {video_id: this.value}, function (result) {
                layer.tips(result.msg, obj.othis);
            });
        });
</pre>

<pre class="layui-code" lay-title="JAVA代码" lay-height="" lay-skin="" lay-encode="" about="false">
     /**
     * 锁定用户
     */
    @Roles(roles = "videoadmin")
    public void PubVidoShowApi() {
        renderJson(DoBasePub(ItvLink.dao, getParaInt("video_id", 0), "pub_tag", "发布"));
    }
</pre>

</div>